tg-me.com/javaproglib/6725
Last Update:
Нужно быстро развернуть REST API c валидацией, логированием, DTO, безопасностью и документацией?
AI справится с этим за один промпт — код будет готов к продакшну, с учетом архитектурных паттернов.
📝 Промпт:
Generate a Spring Boot REST API for managing [сущность или бизнес-логика, например: product catalog, user profiles, task assignments].
Include CRUD endpoints, validation (Hibernate Validator), exception handling, DTO mapping (MapStruct or ModelMapper), and OpenAPI documentation.
Ensure security with JWT-based authentication and role-based access control (Spring Security).
Use layered architecture (Controller → Service → Repository) and follow clean code principles. Add unit tests for controller and service layers.
— Добавьте
integrate with PostgreSQL using Spring Data JPA and specify indexes/constraints
для подключения к БД.— Добавьте
support pagination and filtering with Pageable and Specification API
для удобных выборок.— Добавьте
plug into CI/CD pipeline with Docker and GitHub Actions
для продвинутого автодеплоя.